package com.xinghai.mapper;

import java.util.List;
import com.xinghai.domain.JkqActivity;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * 活动管理Mapper接口
 *
 * @author xinghai
 * @date 2025-08-02
 */
public interface JkqActivityMapper  extends MPJBaseMapper<JkqActivity>
{

    @Update("update jkq_activity set sign_num = sign_num + 1 where id = #{activityId}")
    void updateSignNumById(Long activityId);

    @Update("update jkq_activity set share_num = share_num + 1 where id = #{activityId}")
    void updateShareNumById(Long activityId);

    @Update("update jkq_activity set grant_num = grant_num + 1 where id = #{activityId}")
    void updateGrantNumById(Long activityId);
}
